/// 响应主体内容
class OperateUserDto {
  /// 操作人ID
  final int? userId;
  /// 操作人用户名
  final String? userName;

  OperateUserDto({
    this.userId,
    this.userName,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (userId != null) data['userId'] = userId;
    if (userName != null) data['userName'] = userName;
    return data;
  }

  factory OperateUserDto.fromJson(Map<String, dynamic> json) {
    return OperateUserDto(
      userId: json['userId'],
      userName: json['userName'],
    );
  }
}